/* type Params = {
  data: {
    name: string
    age: number
  }
  method?: string
}

function axios(o: Params) {}

axios({
  // method: 'GET',
  data: {
    name: '河南老乡~',
    age: 18,
  },
}) */

type Stu = {
  name: string
  age: number
  sex: string
  height?: number
  study?: (sub1: string, sub2: string) => void // 方法的可选
  play?(a: string, b: string): void // 方法的可选
}

const stu1: Stu = {
  name: '尼古拉斯',
  age: 18,
  sex: '男',
  study(sub1, sub2) {},
  play(a, b) {},
}

const stu2: Stu = {
  name: '尼古拉斯2',
  age: 18,
  sex: '男',
}

export {}
